package com.yunheone.control;

import com.yunheone.view.Admin;

/**
 * 用户主页业务控制器
 */
public class Admincontrol implements inerface{

    private static Admincontrol instance;

    private Admincontrol(){}

    public static Admincontrol getInstance(){
        if (instance==null){
            instance=new Admincontrol ();
        }
        return instance ;

    }

    /**
     * 主页面路由
     */
    public  void Rount (){
        int i= Admin.adminView ();//展示主页面，并获得操作序号
        switch (i){
            case 1:Usercontrol.listrout ();break;//跳转至账户管理页面
            case 2:Teachcon.teacRou ();break;//跳转至讲师管理页面
            case 3:Logincontrol.rount ();break;//返回主页面,退出;
        }
    }
}
